Skip to content

Add model explainability hooks and audit trail (fixes #676)#680

Open
tebney wants to merge 1 commit into
Smartdevs17:mainfrom
tebney:feat/explainability-ml
Open

Add model explainability hooks and audit trail (fixes #676)#680
tebney wants to merge 1 commit into
Smartdevs17:mainfrom
tebney:feat/explainability-ml

Conversation

@tebney

@tebney tebney commented Jun 25, 2026

Copy link
Copy Markdown

close#676
What: Adds explainability hooks for churn, pricing, and recommendations; records explanation audit trail to ml-service/explanations.json; exposes opt-in parameter on prediction endpoints.\n\nNotes: This is a first pass using lightweight attribution approximations (linear contributions / weighted components). Full SHAP integration, performance tuning, and API schema docs are TODO.\n\nFiles changed:\n- ml-service/model_registry.py\n- backend/ml/churnModel.py\n- backend/ml/pricingModel.py\n- ml-service/routers/churn.py\n- ml-service/routers/pricing.py\n- ml-service/routers/recommendations.py\n\nRelated: #676

…opt-in flags\n\nPartial implementation: lightweight local attributions; SHAP integration TODO (Smartdevs17#676)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant